package com.qifn.blog.Model;

public class Comment {
    private Integer id;
    private String content;
    private User user;
    private boolean replay;
    private Blog blog;

    @Override
    public String toString() {
        return "Comment{" +
                "id=" + id +
                ", content='" + content + '\'' +
                ", user=" + user +
                ", replay=" + replay +
                ", blog=" + blog +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public boolean isReplay() {
        return replay;
    }

    public void setReplay(boolean replay) {
        this.replay = replay;
    }

    public Blog getBlog() {
        return blog;
    }

    public void setBlog(Blog blog) {
        this.blog = blog;
    }

    public Comment() {
    }

    public Comment(Integer id, String content, User user, boolean replay, Blog blog) {
        this.id = id;
        this.content = content;
        this.user = user;
        this.replay = replay;
        this.blog = blog;
    }
}
